﻿namespace Red.Core.GoogleAnalytics
{
    /// <summary>
    /// Context to hold necessary information in order to work with GoogleAnalyticsService.
    /// This context is used to initialize GoogleAnalyticsService.
    /// The default value is kept in GoogleAnalyticsContext.Empty property.
    /// </summary>
    public class GoogleAnalyticsContext
    {
        #region Properties

        public string ApplicationName { get; private set; }
        public string ApplicationVersion { get; private set; }
        public string TrackingID { get; private set; }
        public static GoogleAnalyticsContext Empty = new GoogleAnalyticsContext( string.Empty, string.Empty );

        #endregion Properties

        #region C-tor

        public GoogleAnalyticsContext( string applicationName, string trackingID )
        {
            ApplicationVersion = AppVersion.ApplicationVersion;
            ApplicationName = applicationName;
            TrackingID = trackingID;
        }

        #endregion C-tor
    }
}
